// 空间/企业
import Layout from '@/views/layout/Layout'
import Three from '@/views/layout/Three'

const spaceBusiness = {
  path: '/spaceBusiness',
  name: 'spaceBusiness',
  key: 'spaceBusiness',
  redirect:'/spaceBusiness/spaceManageList',
  component: Layout,
  meta: {
    title: '空间/企业',
    icon: 'space'
  },
  children: [{
    path: 'spaceManageList',
    name: 'spaceManageList',
    key: 'spaceManageList',
    component: () => import('@/views/spaceBusiness/spaceManage/list'),
    meta: {
      title: '空间管理'
    }
  },{
    path: 'houseManageList',
    name: 'houseManageList',
    key: 'houseManageList',
    component: () => import('@/views/spaceBusiness/houseManage/list'),
    meta: {
      title: '房源管理'
    }
  },/*{
    path: 'contractManageList',
    name: 'contractManageList',
    key: 'contractManageList',
    component: () => import('@/views/spaceBusiness/houseManage/list'),
    meta: {
      title: '合同管理'
    }
  },*/{
    path: 'houseDetail',
    name: 'houseDetail',
    key: 'houseDetail',
    hidden:true,
    component: () => import('@/views/spaceBusiness/houseManage/houseDetail'),
    meta: {
      title: '房源详情'
    }
  },{
    path: 'addContract',
    name: 'addContract',
    key: 'addContract',
    hidden:true,
    component: () => import('@/views/spaceBusiness/houseManage/addContract'),
    meta: {
      title: '新建合同'
    }
  },{
    path: 'contractDetail',
    name: 'contractDetail',
    key: 'contractDetail',
    hidden:true,
    component: () => import('@/views/spaceBusiness/houseManage/contractDetail'),
    meta: {
      title: '合同详情'
    }
  },{
    path: 'tenantManageList',
    name: 'tenantManageList',
    key: 'tenantManageList',
    component: () => import('@/views/spaceBusiness/tenantManageList/list'),
    meta: {
      title: '租户/企业管理'
    }
  },{
    path: 'tenantListAdd',
    name: 'tenantListAdd',
    key: 'tenantListAdd',
    hidden:true,
    component: () => import('@/views/spaceBusiness/tenantManageList/add'),
    meta: {
      title: '租户/企业管理'
    }
  }
  ]
}

export default spaceBusiness
